<template>
        <div class="seckill">
            <div class="seckill-title">
                <p>限时秒杀</p>
            </div>
            <div class="seckill-list">
                
                <div 
                class="seckill-list-box"
                v-for="(item,index) in secKillArr"
                :key="index"
                >
                    <div class="seckill-image">
                        <img :src="item.url" alt="">
                    </div>
                    <div class="seckill-color">
                        <p>{{item.title}}</p>
                    </div>
                    <div class="seckill-price">
                        <p>{{item.price}}元起</p>
                    </div>
                </div>

            </div>
        </div>
</template>

<script>


export default {
    name:'ShoppingSeckill',
    data(){
        return{
            
        }
    },
    mounted(){
        
        
    },
    props:{
        secKillArr:{
            type:Array,
            default:[]
        }
    }
}
</script>

<style scoped>

.seckill{
    width: 100%;
    height: 393px;
    padding-top: 15px;
    background-color: white;
}
.seckill-title{
    width:80px;
    height: 23px;
    text-align: center;
    line-height: 23px;
    margin: 0 auto;
    margin-bottom: 3px;
}
.seckill-title p{
    font-size: 16px;
    font-family: Arial;
    color: rgba(16, 16, 16, 1)
}
.seckill-list{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}
.seckill-list-box{
    flex:0 0 33.333%;
    height: 183.5px;
    text-align: center;
}
.seckill-image{
    width:109px;
    height: 122px;
    margin:0 auto;
    margin-top: 8px;
}
.seckill-image img{
    width: 100%;
    height: 100%;
}
.seckill-color{
    width: 80px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    margin:0 auto;
    color: rgba(16, 16, 16, 1);
}
.seckill-color p{
    font-size: 14px;
}
.seckill-price{
    width: 80px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    margin:0 auto;
    color: rgba(242, 61, 82, 1);
}
.seckill-price p{
    font-size: 14px;
}
</style>
